<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

	<!-- Metas -->
	<title>curtains.js | Multiple planes scroll effect example</title>
	<meta name="description" content="WebGL scroll effect on multiple planes with curtains.js">
	<link rel="canonical" href="https://www.curtainsjs.com/examples/multiple-planes-scroll-effect/index.html">

	<!-- Facebook OG -->
	<meta property="og:title" content="curtains.js | Multiple planes scroll effect example">
	<meta property="og:type" content="website">
	<meta property="og:description" content="WebGL scroll effect on multiple planes with curtains.js">
	<meta property="og:url" content="https://www.curtainsjs.com/examples/multiple-planes-scroll-effect/index.html">
	<meta property="og:image" content="https://www.curtainsjs.com/images/curtains-js-logo.jpg">

	<!-- Twitter card -->
	<meta name="twitter:card" content="summary_large_image">
	<meta name="twitter:site" content="@martinlaxenaire">
	<meta name="twitter:creator" content="@martinlaxenaire">
	<meta name="twitter:title" content="curtains.js | Multiple planes scroll effect example">
	<meta name="twitter:description" content="WebGL scroll effect on multiple planes with curtains.js">
	<meta name="twitter:image" content="https://www.curtainsjs.com/images/curtains-js-logo.jpg">

	<!-- Favicon -->
	<link rel="apple-touch-icon" sizes="180x180" href="../../images/favicons/apple-touch-icon.png">
	<link rel="icon" type="image/png" sizes="32x32" href="../../images/favicons/favicon-32x32.png">
	<link rel="icon" type="image/png" sizes="16x16" href="../../images/favicons/favicon-16x16.png">
	<link rel="manifest" href="../../images/favicons/site.webmanifest">
	<link rel="mask-icon" href="../../images/favicons/safari-pinned-tab.svg" color="#202340">
	<link rel="shortcut icon" href="../../images/favicons/favicon.ico">
	<meta name="msapplication-TileColor" content="#202340">
	<meta name="msapplication-config" content="../../images/favicons/browserconfig.xml">
	<meta name="theme-color" content="#202340">

	<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet">
	<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="page-wrap">

	<div id="canvas"></div>

	<a href="https://www.curtainsjs.com/" title="back to curtains.js website" id="back-to-lib-link" target="_blank">back to curtains.js website</a>

    <a href="https://github.com/martinlaxenaire/curtainsjs/blob/master/examples/multiple-planes-scroll-effect/js/multiple.planes.parallax.setup.js" title="Show source code" id="source-code-link" target="_blank">&lt;/ &gt;</a>

	<div id="content">

		<h1>Awesome scrollable content</h1>

		<p>
			On scroll, we apply a small rotation to the plane along the Z axis. We also add a scale effect on Y axis on both the plane and its texture. Finally, we add a parallax effect.<br />
		</p>
		<p>
			This illustrates how to update rotation, scale and relativeTranslation values.
		</p>

		<div id="debug">
			Planes actually drawn: <strong id="debug-value">0</strong>
		</div>

		<div id="planes">

			<div class="plane-wrapper">
				<span class="plane-title">Title 1</span>
				<div class="plane-inner">
					<div class="plane">
						<img src="../medias/plane-texture-1.jpg" crossorigin="" data-sampler="planeTexture" />
					</div>
				</div>
			</div>

			<div class="plane-wrapper">
				<span class="plane-title">Title 2</span>
				<div class="plane-inner">
					<div class="plane">
						<img src="../medias/plane-texture-2.jpg" crossorigin="" data-sampler="planeTexture" />
					</div>
				</div>
			</div>

			<div class="plane-wrapper">
				<span class="plane-title">Title 3</span>
				<div class="plane-inner">
					<div class="plane">
						<img src="../medias/plane-texture-3.jpg" crossorigin="" data-sampler="planeTexture" />
					</div>
				</div>
			</div>

			<div class="plane-wrapper">
				<span class="plane-title">Title 4</span>
				<div class="plane-inner">
					<div class="plane">
						<img src="../medias/plane-texture-4.jpg" crossorigin="" data-sampler="planeTexture" />
					</div>
				</div>
			</div>

		</div>


	</div>
</div>

<script src="js/multiple.planes.parallax.setup.js" type="module"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-141413267-1"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-141413267-1');
</script>

</body>
</html>
